# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python2-pytsk3
_pkgname=pytsk3
pkgver=20190507
pkgrel=3
pkgdesc='Python2 bindings for the sleuthkit.'
arch=('x86_64' 'aarch64')
url='https://github.com/py4n6/pytsk'
license=('Apache')
depends=('python2')
makedepends=('python2-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('912e4083430d6acb0be52c1b6deae97f7642ea5e5855f6f3ae7e78b1dd4d4844890670d7c7b313e5d8c0ae9597ce0172366faa911d8df0af117eb6c20290db50')

build() {
  cd "$_pkgname-$pkgver"

  python2 setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python2 setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

